
package ahuy.edu.basic;


public class Unit34_oveload2 extends Tutorial{
       public static void main(String[] args) {
        Unit34_oveload2 u = new Unit34_oveload2();
        System.out.println(u.add(3, 5));
        System.out.println(u.add(3.5f, 6.4f));
        System.out.println(u.add("AHuy"," handsome"));
    }
    public int add(int a, int b){
        return  a+b;
    }
    float add(float a,float b){
        return a+b;
    }
    
    }
class Tutorial{
        public String add(String str1, String str2){
            return str1+str2;
        }
}

